package com.cloud.poetry.base.entity.res;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author mengxj
 */
@Data
public class SaveFileOutParam {

    private String objectName;

    private String bucket;

    private String url;

    public static Builder builder(){
        return new Builder(new SaveFileOutParam());
    }

    @AllArgsConstructor
    @Data
    public static class Builder{

        private SaveFileOutParam saveFileOutParam;

        public Builder objectName(String objectName){
            this.saveFileOutParam.setObjectName(objectName);
            return this;
        }

        public Builder bucket(String bucket){
            this.saveFileOutParam.setBucket(bucket);
            return this;
        }

        public Builder url(String url){
            this.saveFileOutParam.setUrl(url);
            return this;
        }

        public SaveFileOutParam build(){
            return this.saveFileOutParam;
        }
    }
}
